package cn.tedu.personal_patient.information.services.impl;

import cn.tedu.personal_patient.information.dao.persist.repository.IPatientAddressRepository;
import cn.tedu.personal_patient.information.services.IPatientAddressService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class PatientAddressServiceImpl implements IPatientAddressService {
    @Autowired
    private IPatientAddressRepository patientAddressRepository;

    @Override
    public int deleteByPatientId(Long patinentId) {
       return patientAddressRepository.deleteByPatientId(patinentId);
    }
}
